package com.cars.satoken.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 用户实体类
 *
 * @author: caoqianfan
 * @date: 2023/11/20 9:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 100L;

    @TableId(type = IdType.AUTO)
    Long id;
    List<Long> roleId;
    List<Long> permissionId;
    String name;
    String password;
}